package com.zg.nacos.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/24 15:39
 */
@ApiModel(value = "Nacos配置信息", description = "Nacos配置中心的配置项详细信息")
@Data
public class ConfigContentEditReq extends NacosReq {

    @ApiModelProperty(value = "配置数据ID，唯一标识", example = "zg-test.yml")
    @NotEmpty(message = "配置数据ID不能为空")
    private String dataId;

    @ApiModelProperty(value = "配置所属分组", example = "DEFAULT_GROUP")
    @NotEmpty(message = "配置所属分组不能为空")
    private String group;

    @ApiModelProperty(value = "配置内容")
    @NotEmpty(message = "配置内容不能为空")
    private String content;



    @ApiModelProperty(value = "命名空间ID", example = "back")
    //@NotEmpty(message = "命名空间ID不能为空")
    private String tenant;

    @ApiModelProperty(value = "命名空间ID", example = "back")
    @NotEmpty(message = "命名空间ID不能为空")
    private String namespaceId;

}
